package com.grape.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.grape.domain.SysUserRole;
import com.grape.mapper.SysUserRoleMapper;
import com.grape.service.ISysUserRoleService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 *
 * 用户角色中间表 服务实现类
 *
 * @author  putao
 * @email   2628279194@qq.com
 */
@Service
@AllArgsConstructor
@Transactional(readOnly = true)
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements ISysUserRoleService {

    private final SysUserRoleMapper sysUserRoleMapper;

    /**
     * 根据id查询详情
     * @param id    用户角色ID
     * @return      用户角色中间表对象
     */
    @Override
    public SysUserRole detail(String id) {
        return this.getById(id);
    }
}
